package com.chinasoft.user.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.chinasoft.user.mapper.BusinessMapper;
import com.chinasoft.user.service.BusinessService;
import com.chinasoft.user.vo.BusinessVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 商家业务层
 */
@Service("businessService")
public class BusinessServiceImpl implements BusinessService {

    @Resource
    private BusinessMapper businessMapper;

    @Override
    public List<BusinessVo> findAll(Map<String,Object> map) {
        BusinessVo businessVo = BeanUtil.fillBeanWithMap(map, new BusinessVo(), false);
        return businessMapper.findAll(businessVo);
    }
}
